<!DOCTYPE html>
<html>

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>Math </title>
  <script type="text/javascript">
    function math(x) {
      document.write(Math.floor(x) + "<br/>");
    }
    math(3.3);
    math(-0.1);
    math(-9.9);
    math(8.9);
  </script>
</head>

<body>
</body>

</html>